#include "person.h"

int Person::displaySalary() const
{
	return Salary;
}

Person Person::operator+(const Person& pt)
{
	this->Salary += pt.Salary;
	this->Wife += pt.Wife;
	this->Wife ++;

	return *this;
}

Person operator++(Person& pt, int k)
{
	Person temp(pt);
	pt.Salary += (pt.Wife*1000 + 1000);
	return temp;
}
